<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
 <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<!-- begin of menu tab -->
 <div id="menu_tab">
   <ul class="menu">
     <li><a href="Users.do" class="nav"> Users Management </a></li>
     <li class="divider"></li>
     <li><a href="ProductsManage.do" class="nav">Product Management</a></li>
     <li class="divider"></li>
     <li><a href="Orders.do" class="nav">Orders Management</a></li>
     <li class="divider"></li>
     <li><a href="Deals.do" class="nav">Deals Management</a></li>
     <li class="divider"></li>
     <sec:authorize access="isAnonymous()">
         <li><a href="LoadSignin.do" class="nav">Sign In</a></li>
     </sec:authorize>
     <sec:authorize access="isAuthenticated()">
     	<li style="color:#FFFFFF; float:left; margin-left:30px;">Hello,</li>
 <li><a href="UserDetail.do" class="nav" style="margin:0px; padding-left:5px; width:170px"><b><sec:authentication property="principal.username"/></b></a></li>
 <li><a href="<c:url value="j_spring_security_logout"/>" class="nav" style="margin:0px 5px; padding-left:5px">Sign Out</a></li>
     </sec:authorize>
     
   </ul>
 </div>